// 导入express
const express = require('express')
// 创建路由对象
const router =express.Router()
// 导入商品分类的路由处理函数模块
const goodCate_handler = require('../router_handler/goodcate')

// 获取上台商品分类的路由
router.get('/getCateGoryList',goodCate_handler.getGoodCates)
// 获取全部商品分类的路由
router.get('/getAllGoodCates',goodCate_handler.getAllGoodCates)

// 添加或更新商品分类的路由
router.post('/addOrUpdateCategory',goodCate_handler.addOrUpdateCategory)
// deleteCategory
// 删除商品分类的路由
router.delete('/deleteCategory/:categoryId',goodCate_handler.deleteCategory)
// updateCategoryIsDelete
router.post('/updateCategoryIsDelete',goodCate_handler.updateCategoryIsDelete)
// 向外共享路由对象
module.exports =router